home *** CD-ROM | disk | FTP | other *** search
/ NBC Slam Jams! / NBC Slam Jams!.iso / nbademo.exe / CABFILE / IDR_CABFILE / Data / 2DScript / navbar / NAVBAR.UI
Text File  |  1999-06-17  |  15KB  |  661 lines

  1. "2D\Overlays\NavBar"
  2.  
  3. //********************************
  4. //  Data Container
  5. //********************************
  6. DataContainer {
  7.     Int "InformationBarTempCurrentScreen" {};
  8.     Int "InGameTempNavBarSelection" {};
  9.     Int "InGameNavBarSelection" {
  10.         RadioGroup "InGameNavBarRadio";
  11.     };
  12.     Int "InGameNavBarCoachingButtonFlags" {
  13.         CheckButton "InGameNavBarCoachButton";
  14.         InitialValue 5;
  15.     };
  16.     Int "MinimizeFlag" {InitialValue 0;};
  17.  
  18.     Int "InGamePlayGameButtonFlags" {
  19.         GamepadResumeButton "InGamePlaygameButton";
  20.         InitialValue 5;
  21.     };
  22.  
  23.     String "InGamePlayGameButtonText" {
  24.         GamepadResumeButton "InGamePlaygameButton";
  25.         InitialValue "PLAYGAME";
  26.     };
  27. };
  28.  
  29. //********************************
  30. //  Fonts
  31. //********************************
  32. Font "InGamePlayGameButtonEnable" {
  33.     Filename "plytxte";
  34.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  35.     Kerning 0;
  36. };
  37. Font "InGamePlayGameButtonPushed" {
  38.     Filename "plytxtp";
  39.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  40.     Kerning 1;
  41. };
  42.  
  43. Font "InGameOptionsButtonEnable" {
  44.     Filename "optbute";
  45.     Translate " options";
  46.     Kerning 0;
  47. };
  48. Font "InGameOptionsButtonDisable" {
  49.     Filename "optbutd";
  50.     Translate " options";
  51.     Kerning 0;
  52. };
  53.  
  54. Font "InGameOptionsButtonFocus" {
  55.     Filename "optbutf";
  56.     Translate " options";
  57.     Kerning 0;
  58. };
  59.  
  60. Font "InGameOptionsButtonPush" {
  61.     Filename "optbutp";
  62.     Translate " options";
  63.     Kerning 0;
  64. };
  65. Font "InGameOptionsButtonDisabled" {
  66.     Filename "optbutd";
  67.     Translate " options";
  68.     Kerning 0;
  69. };
  70. Font "InGameNavBarRedArmedFont" {
  71.     Filename "rfonta";
  72.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  73.     Kerning 1;
  74. };
  75. Font "InGameNavBarRedFocusFont" {
  76.     Filename "rfontf";
  77.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  78.     Kerning 1;
  79. };
  80. Font "InGameNavBarRedPushedFont" {
  81.     Filename "rfontp";
  82.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  83.     Kerning 1;
  84. };
  85. Font "InGameNavBarRedEnableFont" {
  86.     Filename "rfonte";
  87.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  88.     Kerning 1;
  89. };
  90. Font "InGameNavBarRedPushedFocusFont" {
  91.     Filename "rfontpf";
  92.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  93.     Kerning 1;
  94. };
  95. Font "InGameNavBarArmedFont" {
  96.     Filename "Font_a";
  97.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  98.     Kerning 1;
  99. };
  100.  
  101. Font "InGameNavBarEnabledFont" {
  102.     Filename "Font_e";
  103.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  104.     Kerning 1;
  105. };
  106.  
  107. Font "InGameNavBarFocusedFont" {
  108.     Filename "Font_f";
  109.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  110.     Kerning 1;
  111. };
  112.  
  113. Font "InGameNavBarPushedFont" {
  114.     Filename "Font_p";
  115.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  116.     Kerning 1;
  117. };
  118.  
  119. Font "InGameNavBarPushedFocusedFont" {
  120.     Filename "Font_pf";
  121.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  122.     Kerning 1;
  123. };
  124. Font "InGameNavBarDisabled" {
  125.     Filename "Font_dis";
  126.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  127.     Kerning 1;
  128. };
  129.  
  130. Font "InGameNavBarBlankFont" {
  131.     Filename "Blankfnt";
  132.     Translate " ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  133.     Kerning 1;
  134. };
  135.  
  136.  
  137. //********************************
  138. // Images 
  139. //********************************
  140. Image "IngameOptionsButtonImageEnabled" {
  141.     FileName "oe";
  142. };
  143.  
  144. Image "IngameOptionsButtonImagePushed" {
  145.     FileName "Op";
  146. };
  147. Image "IngameOptionsButtonImageDisabled" {
  148.     FileName "Od";
  149. };
  150. Image "IngameOptionsButtonImageFocused" {
  151.     FileName "Of";
  152. };
  153. Image "IngameQuitButtonImageEnabled" {
  154.     FileName "equit";
  155. };
  156.  
  157. Image "IngameQuitButtonImagePushed" {
  158.     FileName "pquit";
  159. };
  160.  
  161. Image "IngameQuitButtonImageFocused" {
  162.     FileName "fquit";
  163. };
  164. Image "IngameQuestionButtonImageEnabled" {
  165.     FileName "equest";
  166. };
  167. Image "IngameQuestionButtonImageDisabled" {
  168.     FileName "dquest";
  169. };
  170. Image "IngameQuestionButtonImagePushed" {
  171.     FileName "pquest";
  172. };
  173.  
  174. Image "IngameQuestionButtonImageFocused" {
  175.     FileName "fquest";
  176. };
  177. Image "IngameMinimizeButtonImageEnabled" {
  178.     FileName "emin";
  179. };
  180.  
  181. Image "IngameMinimizeButtonImagePushed" {
  182.     FileName "pmin";
  183. };
  184.  
  185. Image "IngameMinimizeButtonImageFocused" {
  186.     FileName "fmin";
  187. };
  188. Image "InGamePlaygameEnable" {
  189.     Filename "playgame";
  190. };
  191. Image "InGamePlaygameFocus" {
  192.     Filename "playgmeF";
  193. };
  194. Image "InGamePlaygamePush" {
  195.     Filename "playgmeP";
  196. };
  197. Image "InGamePlayGameDummy" {
  198.     Filename "InGamePlayGameDummy";
  199. };
  200. Image "InGameNavBarEnd" {
  201.     Filename "red_end";
  202. };
  203. Image "InGameNavBarOptionsEnabled" {
  204.     Filename "opte";
  205. };
  206. Image "InGameNavBarOptionsArmed" {
  207.     Filename "opte";
  208. };
  209. Image "InGameNavBarOptionsFocus" {
  210.     Filename "Optf";
  211. };
  212. Image "InGameNavBarOptionsPushed" {
  213.     Filename "Optp";
  214. };
  215. Image "InGameNavBarOptionsPushedandArmed" {
  216.     Filename "Optpf";
  217. };
  218. Image "InGameNavBarQuitEnabled" {
  219.     Filename "ende";
  220. };
  221. Image "InGameNavBarQuitArmed" {
  222.     Filename "ende";
  223. };
  224. Image "InGameNavBarQuitFocus" {
  225.     Filename "endf";
  226. };
  227. Image "InGameNavBarQuitPushed" {
  228.     Filename "endp";
  229. };
  230. Image "InGameNavBarQuitPushedFocus" {
  231.     Filename "endpf";
  232. };
  233. Image "InGameNavBarCoachArmed" {
  234.     Filename "Coache";
  235. };
  236.  
  237. Image "InGameNavBarCoachEnabled" {
  238.     Filename "Coache";
  239. };
  240.  
  241. Image "InGameNavBarCoachFocused" {
  242.     Filename "Coachf";    
  243. };
  244.  
  245. Image "InGameNavBarCoachPushed" {
  246.     Filename "Coachp";
  247. };
  248.  
  249. Image "InGameNavBarCoachPushedFocused" {
  250.     Filename "Coachpf";
  251. };
  252.  
  253. Image "InGameNavBarUserControlArmed" {
  254.     Filename "Usere";
  255. };
  256.  
  257. Image "InGameNavBarUserControlEnabled" {
  258.     Filename "Usere";
  259. };
  260.  
  261. Image "InGameNavBarUserControlFocused" {
  262.     Filename "Userf";
  263. };
  264.  
  265. Image "InGameNavBarUserControlPushed" {
  266.     Filename "Userp";
  267. };
  268.  
  269. Image "InGameNavBarUserControlPushedFocused" {
  270.     Filename "Userpf";
  271. };
  272.  
  273. Image "Solid" {
  274.     Position [0, 455];
  275.     Filename "Solid";
  276. };
  277.  
  278. //********************************
  279. // Styles
  280. //********************************
  281. Style "InGamePlaygameEnable" {
  282.     Image "InGamePlaygameEnable";
  283. };
  284. Style "InGameCursorStyle" {
  285.     Image "NormalCursor" {
  286.         FileName "cursors\cursor1";
  287.         Position [-4, -2];
  288.     };
  289.     Image "HighlightCursor" {
  290.         FileName "cursors\cursor2";
  291.         Position [-4, -2];
  292.     };
  293. };
  294.  
  295. ButtonStyle "InGameOptionsButtonsStyle" {
  296.     Enabled Image "InGameOptionsButtonImageEnabled";
  297.     Disabled Image "InGameOptionsButtonImageDisabled";
  298.     Pushed Image "InGameOptionsButtonImagePushed";
  299.     Focused Image "InGameOptionsButtonImageFocused";
  300.     Enabled Font "InGameOptionsButtonEnable";
  301.     Focused Font "InGameOptionsButtonFocus";
  302.     Pushed Font "InGameOptionsButtonPush";
  303.     Disabled Font "InGameOptionsButtonDisabled";
  304. };
  305. ButtonStyle "InGameMinimizeStyle" {
  306.     Enabled Image "InGameMinimizeButtonImageEnabled";
  307.     Pushed Image "InGameMinimizeButtonImagePushed";
  308.     Focused Image "InGameMinimizeButtonImageFocused";
  309. };
  310. ButtonStyle "InGameQuestionStyle" {
  311.     Enabled Image "InGameQuestionButtonImageEnabled";
  312.     Disabled Image "InGameQuestionButtonImageDisabled";
  313.     Pushed Image "InGameQuestionButtonImagePushed";
  314.     Focused Image "InGameQuestionButtonImageFocused";
  315. };
  316.  
  317. ButtonStyle "InGameQuitStyle" {
  318.     Enabled Image "InGameQuitButtonImageEnabled";
  319.     Pushed Image "InGameQuitButtonImagePushed";
  320.     Focused Image "InGameQuitButtonImageFocused";
  321. };
  322. ButtonStyle "InGameNavBarOptionsButton" {
  323.     Enabled Image "InGameNavBarOptionsEnabled";
  324.     Focused Image "InGameNavBarOptionsFocus";
  325.     Pushed Image "InGameNavBarOptionsPushed";
  326.     Armed Image "InGameNavBarOptionsArmed" ;
  327.     PushedandArmed Image "InGameNavBarOptionsPushedandArmed";
  328.  
  329.     Enabled Font "InGameNavBarEnabledFont";
  330.     Pushed Font "InGameNavBarPushedFont";
  331.     Focused Font "InGameNavBarFocusedFont";
  332.     Armed Font "InGameNavBarArmedFont";
  333.     PushedandArmed Font "InGameNavBarPushedFocusedFont";
  334.     Disabled Font "InGameNavBarDisabled";
  335. };
  336. ButtonStyle "InGameNavBarQuitButton" {
  337.     Enabled Image "InGameNavBarQuitEnabled";
  338.     Focused Image "InGameNavBarQuitFocus";
  339.     Pushed Image "InGameNavBarQuitPushed";
  340.     Armed Image "InGameNavBarQuitArmed" ;
  341.     PushedandArmed Image "InGameNavBarQuitPushedFocus";
  342.  
  343.     Enabled Font "InGameNavBarEnabledFont";
  344.     Pushed Font "InGameNavBarPushedFont";
  345.     Focused Font "InGameNavBarFocusedFont";
  346.     Armed Font "InGameNavBarArmedFont";
  347.     PushedandArmed Font "InGameNavBarPushedFocusedFont";
  348. };
  349.  
  350. ButtonStyle "InGameNavBarCoachStyle" {
  351.     Enabled Image "InGameNavBarCoachEnabled";
  352.     Focused Image "InGameNavBarCoachFocused";
  353.     Pushed Image "InGameNavBarCoachPushed";
  354.     Armed Image "InGameNavBarCoachArmed";
  355.     PushedandArmed Image "InGameNavBarCoachPushedFocused";
  356.  
  357.     Enabled Font "InGameNavBarEnabledFont";
  358.     Pushed Font "InGameNavBarPushedFont";
  359.     Focused Font "InGameNavBarFocusedFont";
  360.     Armed Font "InGameNavBarArmedFont";
  361.     PushedandArmed Font "InGameNavBarPushedFocusedFont";
  362.     Disabled Font "InGameNavBarDisabled";
  363. };
  364.  
  365. ButtonStyle "InGameNavBarUserControlStyle" {
  366.     Enabled Image "InGameNavBarUserControlEnabled";
  367.     Focused Image "InGameNavBarUserControlFocused";
  368.     Pushed Image "InGameNavBarUserControlPushed";
  369.     Armed Image "InGameNavBarUserControlArmed";
  370.     PushedandArmed Image "InGameNavBarUserControlPushedFocused";
  371.  
  372.     Enabled Font "InGameNavBarEnabledFont";
  373.     Pushed Font "InGameNavBarPushedFont";
  374.     Focused Font "InGameNavBarFocusedFont";
  375.     Armed Font "InGameNavBarArmedFont";
  376.     PushedandArmed Font "InGameNavBarPushedFocusedFont";
  377. };
  378. ButtonStyle "InGamePlaygameButton" {
  379.     Enabled Image "InGamePlaygameEnable";
  380.     Focused Image "InGamePlaygameFocus";
  381.     Pushed Image "InGamePlaygamePush";
  382.     Disabled Image "InGamePlayGameDummy";
  383.     Enabled Font "InGamePlayGameButtonEnable";
  384.     Pushed Font "InGamePlayGameButtonPushed";
  385.     Focused Font "InGamePlayGameButtonEnable";
  386. };
  387. GroupStyle "InGameNavBarSolidStyle" {
  388.     Image "Solid";
  389. };
  390. Style "InGameNavBarEnd" {
  391.     Image "InGameNavBarEnd";
  392. };
  393. Style "InGameNavBarSolidButtonStyle" {
  394.     Font "InGameNavBarBlankFont";
  395. };
  396.  
  397. //********************************
  398. //  Cursors
  399. //********************************
  400. Cursor "InGameCursor" {
  401.     Style "InGameCursorStyle";
  402.     Hotspot [0, 0];
  403.     Position [320, 240];
  404. };
  405.  
  406. //********************************
  407. //  Buttons
  408. //********************************
  409. Button "InGameMinimizeButton" {
  410.     ButtonStyle "InGameMinimizeStyle";
  411. //    Position [602, 3];
  412.     TopRight Position [-38, 3];
  413.  
  414.     Clicked Action {SetData "MinimizeFlag" 1;};
  415. };
  416.  
  417. Button "InGameQuestionButton" {
  418.     ButtonStyle "InGameQuestionStyle";
  419. //    Position [584, 3];
  420.     TopRight Position [-56, 3];
  421.  
  422.     Disabled;
  423. };
  424. Button "InGameQuitButton" {
  425.     ButtonStyle "InGameQuitStyle";
  426. //    Position [620, 3];
  427.     TopRight Position [-20, 3];
  428.  
  429.     DefaultCancel;
  430.     DefaultQuit;
  431.  
  432.     //Store the current nav bar setting.
  433.     Clicked Action {
  434.         SetData "InGameTempNavBarSelection" LinkTo "InGameNavBarSelection";
  435.     };
  436.     Clicked Action {
  437.         SetData "InformationBarTempCurrentScreen" LinkTo "InformationBarCurrentScreen";
  438.     };
  439.     //Set it to the dummy group item (no background stuff).
  440.     Clicked Action {
  441.         SetData "InGameNavBarSelection" 3;
  442.     };
  443.     
  444.     Clicked Action {
  445.         Popup Group Global "GeneralMessageBox";
  446.     };
  447.     Clicked Action {
  448.         AddOKAction Action {
  449.             SetData "PauseQuit" 4;
  450.         };
  451.     };
  452.     Clicked Action {
  453.         AddOKAction Action StoreOptions;
  454.     };
  455.     Clicked Action {
  456.         AddOKAction Post Action {
  457.             QuitOK;
  458.         };
  459.     };
  460.  
  461.     //Add Cancel actions which set the nav bar back.
  462.     Clicked Action {
  463.         AddCancelAction Post Action {
  464.             SetData "InGameNavBarSelection" LinkTo "InGameTempNavBarSelection";
  465.         };
  466.     };
  467.     Clicked Action {
  468.         AddCancelAction Post Action {
  469.             SetData "InformationBarCurrentScreen" LinkTo "InformationBarTempCurrentScreen";
  470.         };
  471.     };
  472. };
  473. Button "InGameNewOptionsButton" {
  474.     ButtonStyle "InGameOptionsButtonsStyle";
  475. //    Position [532, 3];
  476.     TopRight Position [-108, 3];
  477.  
  478.     Disabled;
  479.     
  480.     String "options" {
  481.         Justify CenterCenter;
  482.         Position [25, 7];
  483.     };
  484. };
  485. CheckButton "InGameNavBarUserControlButton" {
  486. //    Position [106, 447];
  487.     BottomLeft Position [106, -33];
  488.  
  489.     ButtonStyle "InGameNavBarUserControlStyle";
  490.  
  491.     String "USERCONTROL" {
  492.         Justify CenterCenter;
  493.         Position [48, 25];
  494.     };
  495.     
  496.     Armed Action {SetData "CurrInGameContextHelpID" "InGame_Controls_Menu";};
  497. };
  498.  
  499. CheckButton "InGameNavBarCoachButton" {
  500. //    Position [0, 447];
  501.     BottomLeft Position [0, -33];
  502.  
  503.     ButtonStyle "InGameNavBarCoachStyle";
  504.  
  505.     String "COACHING" {
  506.         Justify CenterCenter;
  507.         Position [61, 25];
  508.     };
  509.     
  510.     Armed Action {SetData "CurrInGameContextHelpID" "InGame_Coaching_Menu";};
  511. };
  512.  
  513. CheckButton "InGameNavBarInformationButton" {
  514. //    Position [199, 447];
  515.     BottomLeft Position [199, -33];
  516.  
  517.     ButtonStyle "InGameNavBarOptionsButton";
  518.  
  519.     String "INFORMATION" {
  520.         Justify CenterCenter;
  521.         Position [48, 25];
  522.     };
  523.  
  524.     Armed Action {SetData "CurrInGameContextHelpID" "InGame_Menu";};
  525. };
  526. GamepadResumeButton "InGamePlaygameButton" {
  527. //    Position [528, 440];
  528.     BottomRight Position [-112, -40];
  529.  
  530.     ButtonStyle "InGamePlaygameButton";
  531.  
  532.     String "PLAYGAME" {
  533.         Justify CenterCenter;
  534.         Position [51, 19];
  535.     };
  536.     OK;
  537.     Default;
  538.  
  539.     Clicked Action {SetData "PauseQuit" 2;};
  540. };
  541. CheckButton "InGameNavBarQuitButton"{
  542. //    Position [292, 447];
  543.     BottomLeft Position [292, -33];
  544.  
  545.     ButtonStyle "InGameNavBarQuitButton";
  546.     String "quit" {
  547.         Justify CenterCenter;
  548.         Position [51, 25];
  549.     };
  550.  
  551.     Clicked Action {
  552.         SetData "InGameTempNavBarSelection" LinkTo "InGameNavBarSelection";
  553.     };
  554.     Clicked Action {
  555.         Popup Group Global "GeneralMessageBox";
  556.     };
  557.     Clicked Action {
  558.         AddOKAction Action {
  559.             SetData "PauseQuit" 1;
  560.         };
  561.     };
  562.     Clicked Action {
  563.         AddOKAction Post Action StoreOptions;
  564.     };
  565.     Clicked Action {
  566.         AddOKAction Post Action {
  567.             QuitOK;
  568.         };
  569.     };
  570.     Clicked Action {
  571.         AddCancelAction Post Action {
  572.             SetData "InGameNavBarSelection" LinkTo "InGameTempNavBarSelection";
  573.         };
  574.     };
  575. };
  576. CheckButton "InGameNavBarOptionsButton"{
  577.     Position [292, 447];
  578.     ButtonStyle "InGameNavBarOptionsButton";
  579.  
  580.     String "options" {
  581.         Justify CenterCenter;
  582.         Position [49, 25];
  583.     };
  584. };
  585.  
  586. //********************************
  587. //  Edit Boxes
  588. //********************************
  589. EditBox "InGameNavBarSolidButton" {
  590.     Style "InGameNavBarSolidButtonStyle";
  591.     Position [0, 465];
  592.     Size [330, 20];
  593.  
  594.     String "STARTUP     TEAMSELECT     SPORTSPAGES" {
  595.         Justify CenterCenter;
  596.         Position [165, 10];
  597.     };
  598. };
  599.  
  600. //********************************
  601. //  Groups
  602. //********************************
  603. Group Global "InGameNavBarGroup" {
  604.     Root;
  605.     Position [0, 0];
  606. //    GroupStyle "InGameNavBarSolidStyle";
  607.     Children {
  608.         MenuGroup "InGameNavBarMenu";
  609. //        Group "InGamePlaygamebutton";
  610.         GamepadResumeButton "InGamePlaygameButton";
  611.         Button "InGameNewOptionsButton";
  612.         Button "InGameQuestionButton";
  613.         Button "InGameMinimizeButton";
  614.         Button "InGameQuitButton";
  615.     };
  616.  
  617.     Activate Action {SetData "InGameNavBarSelection" 0;};
  618. };
  619.  
  620. MenuGroup "InGameNavBarMenu" {
  621.     Children {
  622.         Include "2DScript\infobar";
  623.         Include "UIScript\InGame\Coaching";
  624.         Include "UIScript\InGame\UserCont";
  625.         RadioGroup "InGameNavBarRadio";
  626.         Group "dummygroup";
  627.     };
  628. };
  629.  
  630. RadioGroup "InGameNavBarRadio" {
  631.     Children {
  632.         CheckButton "InGameNavBarInformationButton";
  633.         CheckButton "InGameNavBarCoachButton";
  634.         CheckButton "InGameNavBarUserControlButton";
  635. //        CheckButton "InGameNavBarOptionsButton";
  636.         CheckButton "InGameNavBarQuitButton";
  637.     };
  638. };
  639. Group "InGameNavBarEnd" {
  640.     Style "InGameNavBarEnd";
  641.     position [305, 455];
  642. };
  643. //Group "InGamePlaygamebutton" {
  644. //    Style "IngamePlaygameEnable";
  645. //    position [525, 434];
  646. //};
  647.  
  648. Group Global "GeneralMessageBox" {
  649.     CenterCenter Position [-320, -240];
  650.  
  651.     Children {
  652.         Include "UIScript\popup";
  653.     };
  654. };
  655. Group Global "MvpParent" {
  656.     CenterCenter Position [-320, -240];
  657.  
  658.     Children {
  659.         Include "2dScript\mvp";
  660.     };
  661. };